package com.wzp.yyptproject.repository;



import com.wzp.yyptproject.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserRepository extends JpaRepository<User,Integer> {
       List<User> findUsersByUaddress(String uAdddress);
//       List<User> findAndByUphonenum(String uphonenum);
       User  findAndByUnameAndUpasswordAndUidcard(String uname,String upassword,String uidcard);
       User  findAndByUnameAndUphonenumAndUidcard(String uname,String uphonenum,String uidcard);
       User findAndByUemail(String uemail);
       User findAndByUcode(String ucode);
       User findAndByUUid(Integer uid);
       User  findAndByUnameAndUidcard(String uname,String uidcard);
       Page<User> findAll(Pageable pageable);



}
